package com.shanlin.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/page")
@Controller
public class IndexController {
	@ResponseBody
	@RequestMapping("/index")
	public String topage() {
		return "success";
	}
	@ResponseBody
	@RequestMapping("/error")
	public void errorDemo(@RequestParam("id") String id) {
		System.out.println(id);
		int parseInt = Integer.parseInt(id);
	}
}
